<%--
  Created by IntelliJ IDEA.
  User: HUAWEI
  Date: 2021-12-22
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link rel="stylesheet" href="../../css/adminManage.css">
    <link rel="stylesheet" href="../../css/add.css">
    <title>SDAU_master | adminManage Page</title>
    </head>

    <body>
        <div class="backimg">
            <div class="container">
                <!-- 顶部导航栏 -->
                <nav class="navbar navbar-default">
                    <div class="container-fluid">
                        <!-- Brand and toggle get grouped for better mobile display -->
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="/admin/index">SDAU-Master</a>
                        </div>

                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                            <ul class="nav navbar-nav">
                                <li><a href="">欢迎您 <span class="sr-only">(current)</span></a></li>
                                <li class="active"><a href="">${user.username}</a></li>
                                <!-- <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="#">Separated link</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="#">One more separated link</a></li>
                                    </ul>
                                </li> -->
                            </ul>
                            <!-- <form class="navbar-form navbar-left">
                                <div class="form-group">
                                    <input type="text" class="form-control" placeholder="Search">
                                </div>
                                <button type="submit" class="btn btn-default">Submit</button>
                            </form> -->
                            <ul class="nav navbar-nav navbar-right">
                                <li><a href="#">个人中心</a></li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-haspopup="true" aria-expanded="false">其他 <span
                                            class="caret"></span></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="https://gitee.com/Unicat/FinalWork">前端页面</a></li>
                                        <li><a href="https://gitee.com/Unicat/FinalWork">计算机五班</a></li>
                                        <li><a href="https://gitee.com/Unicat/FinalWork">杨成斌2019211670</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="/login/index">退出登录</a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                        <!-- /.navbar-collapse -->
                    </div>
                    <!-- /.container-fluid -->
                </nav>

                <!-- 下部内容 -->
                <div class="content">
                    <!-- 侧边导航栏 -->
                    <div class="left">
                        <ul class="nav nav-pills nav-stacked">
                            <li role="presentation" id="bar-1">
                                <a href="#docCollapse1" class="nav-header collapsed" data-toggle="collapse"
                                   id="collapseParent1" onclick="chevron_toggle(1)">学生管理<span
                                        class="pull-right glyphicon glyphicon-chevron-down"></span></a>
                                <ul id="docCollapse1" class="nav nav-list collapse">
                                    <li><a href="/admin/studentQuery">查看所有学生</a></li>
                                    <li><a href="/findStudentByNamePage">查找指定学生</a></li>
                                    <li><a href="/adminAddStudentPage">添加学生</a></li>
                                    <li><a href="/deleteStudentByNamePage">删除学生</a></li>
                                </ul>
                            </li>
                            <li role="presentation" id="bar-2">
                                <a href="#docCollapse2" class="nav-header collapsed" data-toggle="collapse"
                                   id="collapseParent2" onclick="chevron_toggle(2)">教师管理<span
                                        class="pull-right glyphicon glyphicon-chevron-down"></span></a>
                                <ul id="docCollapse2" class="nav nav-list collapse">
                                    <li><a href="/admin/teacherQuery">查看所有教师</a></li>
                                    <li><a href="/findTeacherByNamePage">查找指定教师</a></li>
                                    <li><a href="/adminAddTeacherPage">添加教师</a></li>
                                    <li><a href="/deleteTeacherByNamePage">删除教师</a></li>
                                </ul>
                            </li>
                            <li role="presentation" id="bar-3">
                                <a href="#docCollapse3" class="nav-header collapsed" data-toggle="collapse"
                                   id="collapseParent3" onclick="chevron_toggle(3)">课程管理<span
                                        class="pull-right glyphicon glyphicon-chevron-down"></span></a>
                                <ul id="docCollapse3" class="nav nav-list collapse">
                                    <li><a href="#">查看所有图书</a></li>
                                    <li><a href="#">查找指定图书</a></li>
                                    <li><a href="#">添加图书</a></li>
                                    <li><a href="#">删除图书</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!-- 主要内容 -->
                    <div class="right">

                        <div class="right-content">
                            <div class="logo">
                                <h2>SDAU-master</h2>
                                <h3>学生注册</h3>
                            </div>

                            <form class="form-horizontal" action="/admin/addStudent?identity=student">
<%--                                <% request.setAttribute("identity", "student"); %>--%>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">用户名</label>
                                    <div class="col-sm-8">
                                        <input type="text" name="username" class="form-control" id="inputuUsername" placeholder="username">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">密码</label>
                                    <div class="col-sm-8">
                                        <input type="password" name="password" class="form-control" id="inputPassword" placeholder="password">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">专业</label>
                                    <div class="col-sm-8">
                                        <input type="text" name="major" class="form-control" id="inputMajor" placeholder="major">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">生日</label>
                                    <div class="row">
                                        <div class="col-xs-3">
                                            <input type="text" name="year" class="form-control" placeholder="year">
                                            <div class="date">年</div>
                                        </div>
                                        <div class="col-xs-3">
                                            <input type="text" name="month" class="form-control" placeholder="month">
                                            <div class="date">月</div>
                                        </div>
                                        <div class="col-xs-3">
                                            <input type="text" name="day" class="form-control" placeholder="day">
                                            <div class="date">日</div>
                                        </div>
                                    </div>
                                </div>

                                <div class="sexdiv">
                                    <div class="radio">
                                        <label>
                                            <input type="radio" name="sex" id="optionsRadios1" value="male" checked>
                                            男
                                        </label>
                                    </div>
                                    <div class="radio">
                                        <label>
                                            <input type="radio" name="sex" id="optionsRadios2" value="female">
                                            女
                                        </label>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">个人简介</label>
                                    <div class="col-sm-8">
                                        <textarea name="introduce" class="form-control" rows="3" placeholder="在这里填写你的个人介绍吧（。＾▽＾）"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="btn-register">
                                        <button type="submit" class="btn btn-success">注册</button>
                                    </div>
                                </div>
                            </form>
                        </div>


                    </div>
                </div>
            </div>
        </div>


        <script>
            function chevron_toggle(num) {
                var str = 'collapseParent' + num;
                console.log(str);
                $(`#${str}`).find("span").toggleClass("glyphicon-chevron-up");
                $(`#${str}`).find("span").toggleClass("glyphicon-chevron-down");
            }
        </script>


        <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
                integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
                crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
        <script src="https://unpkg.com/element-ui/lib/index.js"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
                integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
                crossorigin="anonymous"></script>
    </body>
</html>
